﻿using UnityEngine;
using System.Collections;

public class ExplosionWithGesture : MonoBehaviour {

    public GameObject GestureObject;
    // Use this for initialization
    void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
        if (GestureObject != null)
        {
            Explosion explosion = GetComponent<Explosion>();
            if (explosion == null)
                return;

            GestureExpand gesture = GestureObject.GetComponent<GestureExpand>();
            explosion.explosionRat = (gesture.fValue- gesture.fMinValue) / (gesture.fMaxValue - gesture.fMinValue);

        }
    }
}
